<?php
namespace app\validate;

use think\Validate;

class Password extends Validate
{
    protected $rule = [
        'newPass'     => 'require|length:6,20',
        'code'        => 'require|length:6',
    ];

    protected $message = [
        'newPass.require'       => '必须填写新密码',
        'newPass.length'        => '新密码至少6位',
        'code.require'          => '必须填写短信验证码',
        'code.length'           => '短信验证码至少6位',
    ];

}


